export default {
  namespace: 'formdata',
  state: {
    //提交表单的信息
    FormData: {},
    //获取的编辑表单信息
    idtorData: undefined,
  },
  //服务端接口
  effects: {},
  reducers: {
    //存表单基本数据
    getFrom(state, { payload }) {
      console.log(payload, 'payload');
      return { ...state, FormData: payload };
    },
    //存编辑信息
    getEditor(state, { payload }) {
      console.log(payload, 'payload');
      return { ...state, idtorData: payload };
    },
  },
};
